package org.jeecg.modules.wlhy.customer.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.system.entity.SysUser;
import org.jeecg.modules.wlhy.customer.entity.HyCustomerUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.wlhy.customer.vo.SysUserCustomerUser;

import java.util.List;

/**
 * @Description: 货主子账号
 * @Author: duanlikao
 * @Date:   2020-12-19
 * @Version: V1.0
 */
public interface HyCustomerUserMapper extends BaseMapper<HyCustomerUser> {

    HyCustomerUser getInfoByUserId(@Param("userId") String userId);

    List<HyCustomerUser> getInfoByUserIds(@Param("userIds") String userIds);

    List<HyCustomerUser> getByCustomer(@Param("customerId") String customerId);

    List<SysUserCustomerUser> getUserListByCustomerId(Page<SysUserCustomerUser> userPage, @Param("customerId") String customerId);

    void revertLogicDeleted(@Param("hyCustomerUserIds") String hyCustomerUserIds);

    void removeLogicDeleted(@Param("hyCustomerUserIds") String hyCustomerUserIds);

    List<HyCustomerUser> getDeleteByUserIds(@Param("ids") String ids);
}
